import request from "../utils/request";

export const GetAdmins = (obj) => {
    return request({
        url: 'api/admin/GetAdmins',
        method: "get",
        params: obj,
    });
};
export const AddAdmin = (obj) => {
    return request({
        url: 'api/admin/AddAdmin',
        method: "post",
        data: obj,
    });
};
export const deleteAdmin = (obj) => {
    return request({
        url: 'api/admin/deleteAdmin',
        method: "post",
        data: obj,
    });
};
export const banAdmin = (obj) => {
    return request({
        url: 'api/admin/banAdmin',
        method: "post",
        data: obj,
    });
};
export const GetActions = (obj) => {
    return request({
        url: 'api/admin/GetActions',
        method: "get",
        params: obj,
    });
};
export const getErrors = (obj) => {
    return request({
        url: 'api/admin/getErrors',
        method: "get",
        params: obj,
    });
};











